import { Injectable, Session } from '@nestjs/common';
const svgCaptcha = require('svg-captcha');

@Injectable()
export class AppService {
  getHello(): string {
    return 'Hello World!';
  }

  async getCaptcha(): Promise<any> {
    const captcha = svgCaptcha.create();
    return captcha;
  }
}
